package com.yuzhyn.hiops.app.application.controller.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping({"web/login", "web/l"})
@Controller
public class LoginController {

    @GetMapping("/login")
    public String login(Model model) {
        model.addAttribute("msg", "所以，什么时候登陆呢？");
        return "login";
    }

    @GetMapping("/console")
    public String console(Model model) {
        return "views/console.html";
    }

    @GetMapping("/form")
    public String form(Model model) {
        return "views/form.html";
    }
}
